package com.cskaoyan.bean.bo.wjjBO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author wjj
 * @date 2022-12-28 21:34
 * @describe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PromotionAdCreateNewAdBO {
    //广告内容
    @NotEmpty
    @Length(min = 1,max = 30)
    private String content;

    //是否启用
    private Boolean enabled;

    //活动链接
    @NotNull
    @NotEmpty
    private String link;

    //广告标题
    @NotEmpty
    @Length(min =1, max = 10)
    private String name;

    private Byte position;

    //图片路径
    private String url;



}
